#include "atomic.h"


namespace base_library
{
namespace datastruct
{


const atomic<int> &operator++(atomic<int> &other)
{
	thread::recursive_mutex::scoped_lock lock(other.m_mutex);		
	++other.m_value;
	return other;
}

const atomic<int> &operator--(atomic<int> &other)
{
	thread::recursive_mutex::scoped_lock lock(other.m_mutex);		
	--other.m_value;
	return other;
}


}
}